package com.ggs.rg.ybjb.pojomodule.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author cxw
 * @since 2021-11-03
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TGoodsOrder对象", description="")
public class TGoodsOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键，自增，唯一值")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联订单，外键约束")
    private String oid;

    @ApiModelProperty(value = "关联商品，外键约束")
    private Integer pid;

    @ApiModelProperty(value = "买家购买的商品数量")
    private Integer count;

    public TGoodsOrder(String oid, Integer pid, Integer count) {
        this.oid = oid;
        this.pid = pid;
        this.count = count;
    }
}
